package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.core.DepositApplyDao;
import com.tbit.uqbike.client.pojo.newEntity.DepositApply;
import com.tbit.uqbike.client.service.DepositApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: chen
 * @create: 2024-01-09 15:35
 **/
@Service
public class DepositApplyServiceImpl implements DepositApplyService {

    @Autowired
    private DepositApplyDao depositApplyDao;
    @Override
    public void add(DepositApply depositApply) {
        DepositApply depositApplyDB = depositApplyDao.getByUserId(depositApply.getUserId());
        if(depositApplyDB!=null){
            return;
        }
        depositApplyDao.add(depositApply);
    }

}